<?php
class ContentController extends Zend_Controller_Action {	
	public function tosAction() {	
		include_once('common/header.php');
		$objContent = new Content();
		$arrContent	= $objContent->getByPage($strAction);
		$arrSearch	= array('[DOMAIN_WEB]','[HOST_VFRIEND]','[LINK_ACCOUNT_PAYMENT_VON]');
		$arrReplace	= array(DOMAIN_WEB,HOST_VFRIEND,LINK_ACCOUNT_PAYMENT_VON);
		$arrContent['content'] = str_replace($arrSearch,$arrReplace,$arrContent['content']);
		$this->view->arrContent = $arrContent;
	}
	public function faqAction() {	
		include_once('common/header.php');
		$objContent = new Content();
		$this->view->arrContent = $objContent->getByPage($strAction);
	}	
	public function vonAction() {	
		include_once('common/header.php');
		$objContent = new Content();
		$arrContent	= $objContent->getByPage($strAction);
		$arrSearch	= array('[DOMAIN_WEB]','[HOST_VFRIEND]','[LINK_ACCOUNT_PAYMENT_VON]');
		$arrReplace	= array(DOMAIN_WEB,HOST_VFRIEND,LINK_ACCOUNT_PAYMENT_VON);
		$arrContent['content'] = str_replace($arrSearch,$arrReplace,$arrContent['content']);
		$this->view->arrContent = $arrContent;
	}
	public function memberAction() {	
		include_once('common/header.php');
		$objContent = new Content();
		$this->view->arrContent = $objContent->getByPage($strAction);
	}	
	public function contactAction() {	
		include_once('common/header.php');
		$objContent = new Content();
		$this->view->arrContent = $objContent->getByPage($strAction);
	}
	public function sitemapAction() {	
		include_once('common/header.php');
		$objCommon 		= new Vfriend_Common();
		$arrCateNews	= $objCommon->getCategory(0,10,0,0);
		$arrNews		= array();
		if($arrCateNews) {
			foreach($arrCateNews as $value) {
				$value['sub'] = $objCommon->getCategory($value['categoryid'],10,0,0);
				$arrNews[]	  = $value;
			}
		}
		$arrCatePlages	= $objCommon->getCategory(0,11,0,0);
		$arrPlaces		= array();
		if($arrCatePlages) {
			foreach($arrCatePlages as $value) {
				$value['sub'] = $objCommon->getCategory($value['categoryid'],11,0,0);
				$arrPlaces[]	  = $value;
			}
		}
		$this->view->arrPlaces	= $arrPlaces;
		$this->view->arrNews	= $arrNews;
	}
}
?>